public class OutClass {
    private String x = "我在OutClass";
    public class InClass{
        private String x = "我在InClass";
        public void print()
        {
            System.out.println(x);
        }
    }

    public static void main(String[] args) {
        OutClass out = new OutClass();
        OutClass.InClass in =out.new InClass();
        in.print();
    }
}
